# -*- codeing = utf-8 -*-
# @Time : 2024/3/14 22:59
# @Author : huangjing
# @File : conftest.py
# @Software : PyCharm
import pytest
from demo.common.myRequests import MyRequests

@pytest.fixture()
def login():
    #登录获取token
    print('登录运营平台获取token')
    r = MyRequests()
    res = r.request(method='get', url='https://httpbin.org/cookies/set/token/12345abcde')
    print(res.json())
    return res.json()